package edu.luc.cs.trull.demo.office;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Level;
import org.apache.log4j.Logger;

import edu.luc.cs.trull.Scheduling;

/**
 * A driver for running an office building.
 */
public class Main {
	
	public static void main(String[] args) throws Exception {
	  BasicConfigurator.configure();
	  Logger.getRootLogger().setLevel(Level.OFF);
    Scheduling.setMode(Scheduling.SWINGFAST);
	  Building building = new Building();
	  for (int i = 0; i < args.length; i ++) {
	  		building.addOffice(args[i]);
	  }
    Scheduling.getScheduler().start(building);
	}
}
